<div class="panel panel-default panel-intro">
  {:build_heading()}

  <div class="panel-body">
    <div id="myTabContent" class="tab-content">
      <div class="tab-pane fade active in" id="one">
        <div class="widget-body no-padding">
          <form
            id="edit-form"
            class="form-horizontal"
            role="form"
            data-toggle="validator"
            method="POST"
            action=""
          >
            <div class="form-group">
              <label class="control-label col-xs-12 col-sm-2"
                >{:__('tutorialfile')}:</label
              >
              <div class="col-xs-12 col-sm-8">
                <input
                  id="c-tutorialfile"
                  class="form-control"
                  name="row[tutorialfile]"
                  type="text"
                  value="{$row.tutorialfile|htmlentities}"
                />
              </div>
            </div>
            <hr />
            <div class="form-group">
              <label class="control-label col-xs-12 col-sm-2"
                >客服二维码:</label
              >
              <div class="col-xs-12 col-sm-8">
                <div class="input-group">
                  <input
                    id="c-kfimage"
                    class="form-control"
                    size="50"
                    name="row[kfimage]"
                    type="text"
                    value="{$row.kfimage|htmlentities}"
                  />
                  <div class="input-group-addon no-border no-padding">
                    <span
                      ><button
                        type="button"
                        id="faupload-kfimage"
                        class="btn btn-danger faupload"
                        data-input-id="c-kfimage"
                        data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp"
                        data-multiple="false"
                        data-preview-id="p-kfimage"
                      >
                        <i class="fa fa-upload"></i> {:__('Upload')}
                      </button></span
                    >
                    <span
                      ><button
                        type="button"
                        id="fachoose-kfimage"
                        class="btn btn-primary fachoose"
                        data-input-id="c-kfimage"
                        data-mimetype="image/*"
                        data-multiple="false"
                      >
                        <i class="fa fa-list"></i> {:__('Choose')}
                      </button></span
                    >
                  </div>
                  <span class="msg-box n-right" for="c-kfimage"></span>
                </div>
                <ul
                  class="row list-inline faupload-preview"
                  id="p-kfimage"
                ></ul>
              </div>
            </div>
            <hr />
            <div class="form-group">
              <label class="control-label col-xs-12 col-sm-2"
                >logo:</label
              >
              <div class="col-xs-12 col-sm-8">
                <div class="input-group">
                  <input
                    id="c-logo"
                    class="form-control"
                    size="50"
                    name="row[logo]"
                    type="text"
                    value="{$row.logo|htmlentities}"
                  />
                  <div class="input-group-addon no-border no-padding">
                    <span
                      ><button
                        type="button"
                        id="faupload-logo"
                        class="btn btn-danger faupload"
                        data-input-id="c-logo"
                        data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp"
                        data-multiple="false"
                        data-preview-id="p-logo"
                      >
                        <i class="fa fa-upload"></i> {:__('Upload')}
                      </button></span
                    >
                    <span
                      ><button
                        type="button"
                        id="fachoose-logo"
                        class="btn btn-primary fachoose"
                        data-input-id="c-logo"
                        data-mimetype="image/*"
                        data-multiple="false"
                      >
                        <i class="fa fa-list"></i> {:__('Choose')}
                      </button></span
                    >
                  </div>
                  <span class="msg-box n-right" for="c-logo"></span>
                </div>
                <ul
                  class="row list-inline faupload-preview"
                  id="p-logo"
                ></ul>
              </div>
            </div>
            <hr />
            <div class="form-group">
              <label class="control-label col-xs-12 col-sm-2"
                >邀请赠送重抽卡ID(保证重抽卡存在):</label
              >
              <div class="col-xs-12 col-sm-8">
                <input
                  id="c-card_id_invite"
                  data-rule="required;range(0~100)"
                  class="form-control"
                  name="row[card_id_invite]"
                  type="number"
                  value="{$row.card_id_invite|htmlentities}"
                />
              </div>
            </div>
            <div class="form-group">
              <label class="control-label col-xs-12 col-sm-2"
                >下级开盒赠送上级星石(比例):</label
              >
              <div class="col-xs-12 col-sm-8">
                <input
                  id="c-pid_get_stone"
                  data-rule="required;range(0~100)"
                  class="form-control"
                  name="row[pid_get_stone]"
                  type="number"
                  value="{$row.pid_get_stone|htmlentities}"
                />
              </div>
            </div>
            <div class="form-group">
              <label class="control-label col-xs-12 col-sm-2"
              >下级开盒赠送上级星石(主播):</label
              >
              <div class="col-xs-12 col-sm-8">
                <input
                        id="c-pid_stone_anchor"
                        data-rule="required;range(0~100)"
                        class="form-control"
                        name="row[pid_stone_anchor]"
                        type="number"
                        value="{$row.pid_stone_anchor|htmlentities}"
                />
              </div>
            </div>
            <div class="form-group">
              <label class="control-label col-xs-12 col-sm-2"
                >{:__('连抽优惠比例%')}:</label
              >
              <div class="col-xs-12 col-sm-8">
                <input
                  id="c-lcyhbl"
                  data-rule="required;range(0~100)"
                  class="form-control"
                  name="row[lcyhbl]"
                  type="number"
                  value="{$row.lcyhbl|htmlentities}"
                />
              </div>
            </div>
            <div class="form-group">
              <label class="control-label col-xs-12 col-sm-2"
                >{:__('APP下载跳转')}:</label
              >
              <div class="col-xs-12 col-sm-8">
                <input
                  id="c-openurl"
                  class="form-control"
                  name="row[appurl]"
                  type="text"
                  value="{$row.appurl|htmlentities}"
                />
              </div>
            </div>
            <div class="form-group">
              <label class="control-label col-xs-12 col-sm-2"
                >首次兑换获得重抽卡ID(保证重抽卡存在):</label
              >
              <div class="col-xs-12 col-sm-8">
                <input
                  id="c-card_id"
                  data-rule="required"
                  class="form-control"
                  name="row[card_id]"
                  type="text"
                  value="{$row.card_id|htmlentities}"
                />
              </div>
            </div>
            <hr />
            <div class="form-group">
              <label class="control-label col-xs-12 col-sm-2"
                >阿里云accessid:</label
              >
              <div class="col-xs-12 col-sm-8">
                <input
                  id="c-accessid"
                  data-rule="required"
                  class="form-control"
                  name="row[accessid]"
                  type="text"
                  value="{$row.accessid|htmlentities}"
                />
              </div>
            </div>
            <div class="form-group">
              <label class="control-label col-xs-12 col-sm-2"
                >阿里云accesskey:</label
              >
              <div class="col-xs-12 col-sm-8">
                <input
                  id="c-accesskey"
                  data-rule="required"
                  class="form-control"
                  name="row[accesskey]"
                  type="text"
                  value="{$row.accesskey|htmlentities}"
                />
              </div>
            </div>
            <div class="form-group">
              <label class="control-label col-xs-12 col-sm-2"
                >阿里云OSS实例地址(例:oss-accelerate.aliyuncs.com):</label
              >
              <div class="col-xs-12 col-sm-8">
                <input
                  id="c-endpoint"
                  data-rule="required"
                  class="form-control"
                  name="row[endpoint]"
                  type="text"
                  value="{$row.endpoint|htmlentities}"
                />
              </div>
            </div>
            <div class="form-group">
              <label class="control-label col-xs-12 col-sm-2"
                >阿里云存储空间名称:</label
              >
              <div class="col-xs-12 col-sm-8">
                <input
                  id="c-bucket"
                  data-rule="required"
                  class="form-control"
                  name="row[bucket]"
                  type="text"
                  value="{$row.bucket|htmlentities}"
                />
              </div>
            </div>
            <hr />
            <div class="form-group">
              <label class="control-label col-xs-12 col-sm-2">小程序ID:</label>
              <div class="col-xs-12 col-sm-8">
                <input
                  id="c-mpappid"
                  data-rule="required"
                  class="form-control"
                  name="row[mpappid]"
                  type="text"
                  value="{$row.mpappid|htmlentities}"
                />
              </div>
            </div>
            <div class="form-group">
              <label class="control-label col-xs-12 col-sm-2"
                >小程序密钥:</label
              >
              <div class="col-xs-12 col-sm-8">
                <input
                  id="c-mpappkey"
                  data-rule="required"
                  class="form-control"
                  name="row[mpappkey]"
                  type="text"
                  value="{$row.mpappkey|htmlentities}"
                />
              </div>
            </div>
                        <div class="form-group">
              <label class="control-label col-xs-12 col-sm-2">微信开放平台ID:</label>
              <div class="col-xs-12 col-sm-8">
                <input
                  id="c-wxappid"
                  data-rule="required"
                  class="form-control"
                  name="row[wxappid]"
                  type="text"
                  value="{$row.wxappid|htmlentities}"
                />
              </div>
            </div>
            <div class="form-group">
              <label class="control-label col-xs-12 col-sm-2"
                >微信开放平台密钥:</label
              >
              <div class="col-xs-12 col-sm-8">
                <input
                  id="c-wxappkey"
                  data-rule="required"
                  class="form-control"
                  name="row[wxappkey]"
                  type="text"
                  value="{$row.wxappkey|htmlentities}"
                />
              </div>
            </div>
            
               <div class="form-group">
              <label class="control-label col-xs-12 col-sm-2"
                >是否开启发货同步:</label
              >
              <div class="col-xs-12 col-sm-8">
                 {:build_radios('row[is_fahuotongbu]', ['1'=>__('Yes'), '0'=>__('No')],
                $row['is_fahuotongbu'])}
              </div>
            </div>
            
            
            <hr />
            <div class="form-group">
              <label class="control-label col-xs-12 col-sm-2"
                >微信商户号:</label
              >
              <div class="col-xs-12 col-sm-8">
                <input
                  id="c-payid"
                  data-rule="required"
                  class="form-control"
                  name="row[payid]"
                  type="text"
                  value="{$row.payid|htmlentities}"
                />
              </div>
            </div>
            <div class="form-group">
              <label class="control-label col-xs-12 col-sm-2">微信密钥:</label>
              <div class="col-xs-12 col-sm-8">
                <input
                  id="c-paykey"
                  data-rule="required"
                  class="form-control"
                  name="row[paykey]"
                  type="text"
                  value="{$row.paykey|htmlentities}"
                />
              </div>
            </div>
            <hr />
                        <div class="form-group">
              <label class="control-label col-xs-12 col-sm-2"
                >支付宝应用ID:</label
              >
              <div class="col-xs-12 col-sm-8">
                <input
                  id="c-appId"
                  data-rule="required"
                  class="form-control"
                  name="row[appId]"
                  type="text"
                  value="{$row.appId|htmlentities}"
                />
              </div>
            </div>
            <div class="form-group">
              <label class="control-label col-xs-12 col-sm-2">支付宝应用私钥:</label>
              <div class="col-xs-12 col-sm-8">
                <input
                  id="c-rsaPrivateKey"
                  data-rule="required"
                  class="form-control"
                  name="row[rsaPrivateKey]"
                  type="text"
                  value="{$row.rsaPrivateKey|htmlentities}"
                />
              </div>
            </div>
                        <div class="form-group">
              <label class="control-label col-xs-12 col-sm-2">支付宝应用公钥:</label>
              <div class="col-xs-12 col-sm-8">
                <input
                  id="c-alipayrsaPublicKey"
                  data-rule="required"
                  class="form-control"
                  name="row[alipayrsaPublicKey]"
                  type="text"
                  value="{$row.alipayrsaPublicKey|htmlentities}"
                />
              </div>
            </div>
            <hr />
            <div class="form-group">
              <label class="control-label col-xs-12 col-sm-2"
                >易支付ID:</label
              >
              <div class="col-xs-12 col-sm-8">
                <input
                  id="c-yzfid"
                  data-rule="required"
                  class="form-control"
                  name="row[yzfid]"
                  type="text"
                  value="{$row.yzfid|htmlentities}"
                />
              </div>
            </div>
            <div class="form-group">
              <label class="control-label col-xs-12 col-sm-2">易支付密钥:</label>
              <div class="col-xs-12 col-sm-8">
                <input
                  id="c-yzfkey"
                  data-rule="required"
                  class="form-control"
                  name="row[yzfkey]"
                  type="text"
                  value="{$row.yzfkey|htmlentities}"
                />
              </div>
            </div>
           <div class="form-group">
              <label class="control-label col-xs-12 col-sm-2">易支付地址:</label>
              <div class="col-xs-12 col-sm-8">
                <input
                  id="c-yzfurl"
                  data-rule="required"
                  class="form-control"
                  name="row[yzfurl]"
                  type="text"
                  value="{$row.yzfurl|htmlentities}"
                />
              </div>
            </div>
            <hr />
            <div class="form-group">
              <label class="control-label col-xs-12 col-sm-2"
                >快递100key:</label
              >
              <div class="col-xs-12 col-sm-8">
                <input
                  id="c-kdkey"
                  data-rule="required"
                  class="form-control"
                  name="row[kdkey]"
                  type="text"
                  value="{$row.kdkey|htmlentities}"
                />
              </div>
            </div>
            <div class="form-group">
              <label class="control-label col-xs-12 col-sm-2"
                >快递100customer:</label
              >
              <div class="col-xs-12 col-sm-8">
                <input
                  id="c-kdcustomer"
                  data-rule="required"
                  class="form-control"
                  name="row[kdcustomer]"
                  type="text"
                  value="{$row.kdcustomer|htmlentities}"
                />
              </div>
            </div>
            <hr>
            <div class="form-group">
              <label class="control-label col-xs-12 col-sm-2"
                >分享页面域名:</label
              >
              <div class="col-xs-12 col-sm-8">
                <input
                  id="c-domain"
                  data-rule="required"
                  class="form-control"
                  name="row[domain]"
                  type="text"
                  value="{$row.domain|htmlentities}"
                />
              </div>
            </div>
            <div class="form-group">
              <label for="c-is_hide_price" class="control-label col-xs-12 col-sm-2"
                >{:__('Is_hide_price')}:</label
              >
              <div class="col-xs-12 col-sm-8">
                {:build_radios('row[is_hide_price]', ['1'=>__('Yes'), '0'=>__('No')],
                $row['is_hide_price'])}
              </div>
            </div>
          <div class="form-group">
              <label class="control-label col-xs-12 col-sm-2"
              >{:__('Is_shiwan_show')}:</label
              >
              <div class="col-xs-12 col-sm-8">
                  {:build_radios('row[is_shiwan_show]', ['1'=>__('Yes'), '0'=>__('No')],
                  $row['is_shiwan_show'])}
              </div>
          </div>
          <hr>
          <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2"
            >{:__('Pay_way')}:</label
            >
            <div class="col-xs-12 col-sm-8">
              {:build_radios('row[pay_way]', ['1'=>__('Wechat_pay'), '2'=>__('Ls_pay')],
              $row['pay_way'])}
            </div>
          </div>
          <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">联速商户号:</label>
            <div class="col-xs-12 col-sm-8">
              <input
                      id="c-lspay_mch_no"
                      data-rule="required"
                      class="form-control"
                      name="row[lspay_mch_no]"
                      type="text"
                      value="{$row.lspay_mch_no|htmlentities}"
              />
            </div>
          </div>
          <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">联速应用app_id:</label>
            <div class="col-xs-12 col-sm-8">
              <input
                      id="c-lspay_app_id"
                      data-rule="required"
                      class="form-control"
                      name="row[lspay_app_id]"
                      type="text"
                      value="{$row.lspay_app_id|htmlentities}"
              />
            </div>
          </div>
          <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">联速密钥:</label>
            <div class="col-xs-12 col-sm-8">
              <input
                      id="c-lspay_key"
                      data-rule="required"
                      class="form-control"
                      name="row[lspay_key]"
                      type="text"
                      value="{$row.lspay_key|htmlentities}"
              />
            </div>
          </div>
           <div class="form-group" style="display:none">
            <label class="control-label col-xs-12 col-sm-2">通联RSA公钥:</label>
            <div class="col-xs-12 col-sm-8">
              <input
                      id="c-lspay_key"
                      data-rule="required"
                      class="form-control"
                      name="row[lspay_gkey]"
                      type="text"
                      value="{$row.lspay_gkey|htmlentities}"
              />
            </div>
          </div>
          <hr>
            <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">充值金额:</label>
            <div class="col-xs-12 col-sm-8">
                <div class="col-sm-2" style="padding-left: unset;">
                    <input
                      id="c-recharge-1"
                      data-rule="required"
                      class="form-control"
                      name="row[recharge][]"
                      type="text"
                      value="{$row.recharge[0]|htmlentities}"
              />      
                </div>
              <div class="col-sm-2" style="padding-left: unset;">
              <input
                      id="c-recharge-2"
                      data-rule="required"
                      class="form-control"
                      name="row[recharge][]"
                      type="text"
                      value="{$row.recharge[1]|htmlentities}"
              />
              </div>
              <div class="col-sm-2" style="padding-left: unset;">
              <input
                      id="c-recharge-3"
                      data-rule="required"
                      class="form-control"
                      name="row[recharge][]"
                      type="text"
                      value="{$row.recharge[2]|htmlentities}"
              />
              </div>
              <div class="col-sm-2" style="padding-left: unset;">
              <input
                      id="c-recharge-4"
                      data-rule="required"
                      class="form-control"
                      name="row[recharge][]"
                      type="text"
                      value="{$row.recharge[3]|htmlentities}"
              />
              </div>
              <div class="col-sm-2" style="padding-left: unset;">
              <input
                      id="c-recharge-5"
                      data-rule="required"
                      class="form-control"
                      name="row[recharge][]"
                      type="text"
                      value="{$row.recharge[4]|htmlentities}"
              />
              </div>
            </div>
          </div>
          <hr>

            <div class="form-group layer-footer">
              <label class="control-label col-xs-12 col-sm-2"></label>
              <div class="col-xs-12 col-sm-8">
                <button
                  type="submit"
                  class="btn btn-success btn-embossed disabled"
                >
                  {:__('OK')}
                </button>
                <button type="reset" class="btn btn-default btn-embossed">
                  {:__('Reset')}
                </button>
              </div>
            </div>



          </form>
        </div>
      </div>
    </div>
  </div>
</div>
